package com.ripplezjw.blog.mapper;

import com.ripplezjw.blog.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User findUserByUserNameAndPassWord(String username, String password);
    int cntUsername(String username);
    int addUser(String username, String password);
    List<User> findUsers();
    int updateUserByUserId(User user);
    int delUserByUserId(int userId);
    User findUserById(int userId);
}
